package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 *     消息推送实体类。
 * <desc/>
 *
 * @createDate 2017/9/28.
 */
@ItlTables("push_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PushInfoPO extends BasePO  implements Serializable {

    @ItlField(value = "push_info_id",logicKey = "key")
    private String pushInfoId; //推送消息

    @ItlField("info_type")
    private Integer infoType; //消息类型

    @ItlField("info_content")
    private String infoContent; //消息内容

    @ItlField("start_time")
    private String startTime;  //开始时间

    @ItlField("end_time")
    private String endTime;  //结束时间

    @ItlField("title")
    private String title;   // 标题

    @ItlField("version_info")
    private String versionInfo;   // 版本号

    @ItlField("publish_platform")
    private Integer publishPlatform;    // 发布平台 1家半径APP 2家半径小程序 3家半径物业宝APP




    public PushInfoPO(String pushInfoId,
                      Integer infoType,
                      String infoContent,
                      Integer status,
                      String startTime,
                      String endTime,
                      Date createTime,
                      Date updateTime){

        this.pushInfoId = pushInfoId;
        this.infoType = infoType;
        this.infoContent =infoContent;
        this.setStatus(status);
        this.startTime = startTime;
        this.endTime = endTime;
        this.setCreateTime(createTime);
        this.setUpdateTime(updateTime);

    }
}
